package com.mswyt.utils.test.crud;

import com.mswyt.utils.msCrudbean.annotation.MsCrudRewrite;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @ClassName: MsCrudService
 * @Description: service
 */
@Service
public class MsCrudService {

    //模拟拦截默认的查询方法。
    @MsCrudRewrite(rewriteMethod = "selfFind")
    public Object selfFindMethods(Map<String, Object> params) {
        System.err.println("处理自己的业务逻辑");
        return params;
    }

    @MsCrudRewrite(rewriteMethod = "selfDict")
    public Object selfDict(Map<String, Object> params){
        return params;
    }
}

